/* 大神技能 */
<template>
  <div class="app-container">

    <el-table v-if="userManitoApplyList.length" v-loading="loading" :data="userManitoApplyList" >
      <el-table-column label="申请品类" align="center" prop="gategoryName" />
      <el-table-column label="大区" align="center" prop="regionName" />
      <el-table-column label="段位" align="center" prop="highestStrengthName" />
      <el-table-column label="擅长位置" align="center" prop="skilledPosition" />
      <el-table-column label="擅长英雄" align="center" prop="skilledRole" />
      <el-table-column label="品类等级" align="center" prop="godLevel" />

      <el-table-column label="陪玩猫粮值" align="center" prop="price" >
        <template slot-scope="scope">
          {{ scope.row.price + ' /'+  scope.row.unit }}
        </template>
      </el-table-column>
      <el-table-column label="被邀约次数" align="center" prop="times" />
      <el-table-column label="好评分" align="center" prop="token" />
      <el-table-column label="首次申请时间" align="center" prop="createTiem" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTiem) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="通过时间" align="center" prop="authenticationTime" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.authenticationTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" @click="showAssess(scope.row)">查看评价</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div v-else>
      无数据
    </div>

  </div>
</template>

<script>
import { listUserManitoApplyToAccount } from "@/api/system/userManitoApply";
export default {
  data() {
    return {
      // 遮罩层
      loading: true,
      // 总条数
      total: 0,
      userManitoApplyList: [],
      // 查询参数
      accountId: undefined,
    };
  },
  created() {
  },
  methods: {
    /** 查询用户登录日志列表 */
    getList() {
      console.log(this.accountId)
      this.loading = true;
      listUserManitoApplyToAccount(this.accountId).then(response => {
        this.userManitoApplyList = response.data;
        this.loading = false;
      });
    },
    init(accountId){
      console.log(123)
      this.accountId = accountId
      this.getList()
    },
    showAssess(row){

    }
  }
};
</script>